export default function toMoney (money = 0) {
  // 过滤金额后的两位小数
  const newMoney = !isNaN(+money) ? (+money).toFixed(2) : '0.00';
  return newMoney;
}

export function sliceName(name = "") {
  const newName = name.length > 12 ? name.slice(0, 10) : name;
  return newName;
}